package com.sdjzu.university.service;

import com.sdjzu.university.entity.University;
import com.sdjzu.university.mapper.UniversityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UniversityServiceImpl implements UniversityService {
    @Autowired
    UniversityMapper universityMapper;

    @Override
    public List<University> selectList() {
        return universityMapper.selectList(null);
    }

    @Override
    public int insert() {
        return universityMapper.insert();
    }

    @Override
    public int update() {
        return universityMapper.update();
    }

    @Override
    public int delete() {
        return universityMapper.delete();
    }

}
